<%@page session="true" %>
<%@page import="beans.ItemCartaBean"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%
	ArrayList<ItemCartaBean> itemsCartaPedido = (ArrayList<ItemCartaBean>)request.getSession().getAttribute("itemsCartaPedido");
	if(itemsCartaPedido != null){
 %>
<center>
<table border="0" cellpadding="0" width="100%" bgcolor="#FFFFFF">
 <tr>
 <td style="width: 79px; "><b>Nro Plato</b></td>
 <td style="width: 360px; "><b>Nombre</b></td>
 <td></td>
 </tr>
 <%
 	for (int index=0; index < itemsCartaPedido.size(); index++) {
   	ItemCartaBean itcs = itemsCartaPedido.get(index);
  %>
 <tr> 
  <td><b><%= itcs.getId()%></b></td>
  <td><b><%= itcs.getPlato().getDescripcion()%></b></td>
  <td style="height: 31px; ">
  	<form name="borrarPlato" action="./MozoSarvlet" method="get">
   		<input type="submit" value="Eliminar">
   		<input type="hidden" name="delindex" value="xx">
   		<input type="hidden" name="action" value="DELETE">
  	</form>
  </td>
 </tr>
 <% } %> 
</table>
</center>
<% } %>
